import Vue from 'vue';
import Vuex from 'vuex';
import dict from './modules/dict';

Vue.use(Vuex);

import getters from '@/store/getters';
import user from '@/store/modules/user';
import slide from '@/store/modules/slide';
import permission from '@/store/modules/permission';
import dialog from '@/store/modules/dialog';
import menu from '@/store/modules/menu';
import config from '@/store/modules/config';

export default new Vuex.Store({
  getters,
  modules: {
    user,
    dict,
    slide,
    permission,
    dialog,
    menu,
    config
  },
});
